
def testMath(){
    def val = 1002.2 / 2

    def i = val.toString().toDouble().intValue()

    def a = Math.floor(val).intValue()

    println i
    println a
}


static void main(String[] args) {
    testMath()
}